﻿

namespace System.Extensions.Web.UI.WebControls.Design
{
  using System;
  using System.Web.UI;
  using System.Web.UI.WebControls;

  public class SpecificControlConverter : ControlIDConverter
  {
    private Type controlType;

    public SpecificControlConverter(Type controlType)
    {
      this.controlType = controlType;
    }

    protected override bool FilterControl(Control control)
    {
      return control.GetType() == this.controlType;
    }
  }
}
